<?php

class Container
{
    private $data;

    public function __construct($data = array())
    {
        $this->data = $data;
    }

    public function __get($str)
    {
        return $this->data[$str];
    }

    public function __set($str, $value)
    {
        $this->data[$str] = $value;
    }
}


class BPReader
{
    private $file;
    private $data;

    public function __construct()
    {
        $this->file = sfConfig::get('sf_config_dir') . '/backup/data.xml';
    }

    public function load()
    {
        $xml = simplexml_load_file($this->file);
        $this->data = $xml;
    }

    public function getData()
    {
        return $this->data;
    }

}